package com.superm.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品信息表
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Goods {

    //商品编号
    private Integer goodsId;
    //商品名称
    private String goodsName;
    //商品单价
    private Double goodsPrice;
    //品牌
    private Brand brand;
    //数量
    private Integer goodsQuantity;
    //一级分类
    private RelationShip relationShipOne;
    //二级分类
    private RelationShip relationShipTwo;
    //容量
    private Double capacity;
    //所属货架
    private StorgageRack storgageRack;
    //单位
    private  String specifiCations;
    //商品图
    private String goodsImg;

    public Goods(Integer goodsId) {
        this.goodsId = goodsId;
    }

    //商品状态
    private String goodsState;
    //创建时间
    private String createTime;

    private Integer storgageRackId;

    public Integer getStorgageRackId() {
        return storgageRackId;
    }

    public void setStorgageRackId(Integer storgageRackId) {
        this.storgageRackId = storgageRackId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Brand getBrand() {
        return brand;
    }

    public void setBrand(Brand brand) {
        this.brand = brand;
    }

    public RelationShip getRelationShipOne() {
        return relationShipOne;
    }

    public void setRelationShipOne(RelationShip relationShipOne) {
        this.relationShipOne = relationShipOne;
    }

    public RelationShip getRelationShipTwo() {
        return relationShipTwo;
    }

    public void setRelationShipTwo(RelationShip relationShipTwo) {
        this.relationShipTwo = relationShipTwo;
    }

    public Double getCapacity() {
        return capacity;
    }

    public void setCapacity(Double capacity) {
        this.capacity = capacity;
    }

    public String getSpecifiCations() {
        return specifiCations;
    }

    public void setSpecifiCations(String specifiCations) {
        this.specifiCations = specifiCations;
    }

    public String getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    public String getGoodsState() {
        return goodsState;
    }

    public void setGoodsState(String goodsState) {
        this.goodsState = goodsState;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getGoodsQuantity() {
        return goodsQuantity;
    }

    public void setGoodsQuantity(Integer goodsQuantity) {
        this.goodsQuantity = goodsQuantity;
    }

    public StorgageRack getStorgageRack() {
        return storgageRack;
    }

    public void setStorgageRack(StorgageRack storgageRack) {
        this.storgageRack = storgageRack;
    }

    public Goods(Integer goodsId, Integer goodsQuantity, StorgageRack storgageRack) {
        this.goodsId = goodsId;
        this.goodsQuantity = goodsQuantity;
        this.storgageRack = storgageRack;
    }
}
